using System.Threading.Tasks;

namespace Terra.Core.Infrastructure.SMS.Interfaces;

/// <summary>
/// 短信发送服务接口
/// </summary>
public interface ISmsSender
{
    /// <summary>
    /// 发送短信
    /// </summary>
    /// <param name="phoneNumber">手机号码</param>
    /// <param name="content">短信内容</param>
    /// <param name="templateCode">模板代码(可选)</param>
    /// <returns>发送结果</returns>
    Task<bool> SendAsync(string phoneNumber, string content, string templateCode = null);
}